/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DVDPanel.java
 *
 * Created on 19/11/2009, 14:24:33
 */

package desktopapplication3;

import backend.Product;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;

/**
 *
 * @author santiago
 */
public class DVDPanel extends javax.swing.JPanel {

    /** Creates new form DVDPanel */
    private Product myProd;
    private int languagecode;
    private List<String> pInformation;
    /** Creates new form BookPanel */
    public DVDPanel(Product aProd, int lc) {

        initComponents();

        myProd=aProd;
        try {
            pInformation = aProd.getProductInformation();
        } catch (Exception a) {
                org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(desktopapplication3.DesktopApplication3.class).getContext().getResourceMap(VentanaPrincipal.class);
                JOptionPane.showMessageDialog(this,resourceMap.getString("ERROR_"+a.getMessage()),"Error",1);
                System.exit(0);
          }
        languagecode=lc;

        //initMyComponents();

        Icon preview=null;
        try {
            URL url = new URL(myProd.getImage());
            preview = new ImageIcon( DesktopApplication3.getScaledImage((new ImageIcon( url )).getImage(),350,385) );

        } catch (MalformedURLException ex) {
                org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(desktopapplication3.DesktopApplication3.class).getContext().getResourceMap(VentanaPrincipal.class);
                JOptionPane.showMessageDialog(this,resourceMap.getString("ERROR_1534"),"Error",1);
                System.exit(0);
        }

        
        Caratula.setIcon(preview);
        titulo.setText(myProd.getName()); // NOI18N
        actorsLab.setText(pInformation.get(1)); // NOI18N
        formatLab.setText(pInformation.get(2)); // NOI18N
        lanLab.setText(pInformation.get(3)); // NOI18N
        subLab.setText(pInformation.get(4)); // NOI18N
        regLab.setText(pInformation.get(5)); // NOI18N
        aspLab.setText(pInformation.get(6)); // NOI18N
        discLab.setText(pInformation.get(7)); // NOI18N
        productPrice.setText(((Double)myProd.getPrice()).toString()); // NOI18N
        productRank.setText(((Double)myProd.getRank()).toString()); // NOI18N

    }



        private void initMyComponents(){

        titulo = new javax.swing.JLabel();
        Caratula = new javax.swing.JLabel();
        actores = new javax.swing.JLabel();
        formato = new javax.swing.JLabel();
        lenguaje = new javax.swing.JLabel();
        subtitulos = new javax.swing.JLabel();
        region = new javax.swing.JLabel();
        aspecto = new javax.swing.JLabel();
        numeroDeDiscos = new javax.swing.JLabel();
        actorsLab = new javax.swing.JLabel();
        formatLab = new javax.swing.JLabel();
        lanLab = new javax.swing.JLabel();
        subLab = new javax.swing.JLabel();
        regLab = new javax.swing.JLabel();
        aspLab = new javax.swing.JLabel();
        discLab = new javax.swing.JLabel();
        productPrice = new javax.swing.JLabel();
        productRank = new javax.swing.JLabel();
        Ranking = new javax.swing.JLabel();
        Precio = new javax.swing.JLabel();
        Icon preview=null;
        try {
            preview = new ImageIcon(new URL(myProd.getImage()));
        } catch (MalformedURLException ex) {
                org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(desktopapplication3.DesktopApplication3.class).getContext().getResourceMap(VentanaPrincipal.class);
                JOptionPane.showMessageDialog(this,resourceMap.getString("ERROR_1534"),"Error",1);
                System.exit(0);
        }


        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(desktopapplication3.DesktopApplication3.class).getContext().getResourceMap(DVDPanel.class);
        titulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        titulo.setFont(resourceMap.getFont("titulo.font"));
       
        titulo.setText(myProd.getName()); // NOI18N
        titulo.setName("titulo"); // NOI18N

        Caratula.setIcon(preview);
        Caratula.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        //Caratula.setText(resourceMap.getString("Caratula.text")); // NOI18N
        Caratula.setName("Caratula"); // NOI18N

        actores.setFont(resourceMap.getFont("actores.font")); // NOI18N
        actores.setText(resourceMap.getString("actores.text")); // NOI18N
        actores.setName("actores"); // NOI18N

        formato.setFont(resourceMap.getFont("actores.font")); // NOI18N
        formato.setText(resourceMap.getString("formato.text")); // NOI18N
        formato.setName("formato"); // NOI18N

        lenguaje.setFont(resourceMap.getFont("actores.font")); // NOI18N
        lenguaje.setText(resourceMap.getString("lenguaje.text")); // NOI18N
        lenguaje.setName("lenguaje"); // NOI18N

        subtitulos.setFont(resourceMap.getFont("actores.font")); // NOI18N
        subtitulos.setText(resourceMap.getString("subtitulos.text")); // NOI18N
        subtitulos.setName("subtitulos"); // NOI18N

        region.setFont(resourceMap.getFont("actores.font")); // NOI18N
        region.setText(resourceMap.getString("region.text")); // NOI18N
        region.setName("region"); // NOI18N

        aspecto.setFont(resourceMap.getFont("actores.font")); // NOI18N
        aspecto.setText(resourceMap.getString("aspecto.text")); // NOI18N
        aspecto.setName("aspecto"); // NOI18N

        numeroDeDiscos.setFont(resourceMap.getFont("actores.font")); // NOI18N
        numeroDeDiscos.setText(resourceMap.getString("numeroDeDiscos.text")); // NOI18N
        numeroDeDiscos.setName("numeroDeDiscos"); // NOI18N

        Ranking.setFont(resourceMap.getFont("Ranking.font")); // NOI18N
        Ranking.setText(resourceMap.getString("Ranking.text")); // NOI18N
        Ranking.setName("Ranking"); // NOI18N

        Precio.setFont(resourceMap.getFont("Precio.font")); // NOI18N
        Precio.setText(resourceMap.getString("Precio.text")); // NOI18N
        Precio.setName("Precio"); // NOI18N

        actorsLab.setText(pInformation.get(1)); // NOI18N
        actorsLab.setName("actorsLab"); // NOI18N

        formatLab.setText(pInformation.get(2)); // NOI18N
        formatLab.setName("formatLab"); // NOI18N

        lanLab.setText(pInformation.get(3)); // NOI18N
        lanLab.setName("lanLab"); // NOI18N

        subLab.setText(pInformation.get(4)); // NOI18N
        subLab.setName("subLab"); // NOI18N

        regLab.setText(pInformation.get(5)); // NOI18N
        regLab.setName("regLab"); // NOI18N

        aspLab.setText(pInformation.get(6)); // NOI18N
        aspLab.setName("aspLab"); // NOI18N

        discLab.setText(pInformation.get(7)); // NOI18N
        discLab.setName("discLab"); // NOI18N



        productPrice.setText(((Double)myProd.getPrice()).toString()); // NOI18N
        productPrice.setName("productPrice"); // NOI18N

        productRank.setText(((Double)myProd.getRank()).toString()); // NOI18N
        productRank.setName("productRank"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(titulo, javax.swing.GroupLayout.DEFAULT_SIZE, 663, Short.MAX_VALUE))
            .addComponent(Caratula, javax.swing.GroupLayout.DEFAULT_SIZE, 675, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(formato)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(formatLab, javax.swing.GroupLayout.DEFAULT_SIZE, 587, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(actores)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(actorsLab, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)
                        .addGap(434, 434, 434)))
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lenguaje)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lanLab, javax.swing.GroupLayout.DEFAULT_SIZE, 567, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(subtitulos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(subLab, javax.swing.GroupLayout.DEFAULT_SIZE, 563, Short.MAX_VALUE)
                .addGap(24, 24, 24))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(region)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(regLab, javax.swing.GroupLayout.DEFAULT_SIZE, 577, Short.MAX_VALUE)
                .addGap(24, 24, 24))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(aspecto)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(aspLab, javax.swing.GroupLayout.DEFAULT_SIZE, 550, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(numeroDeDiscos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(discLab, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addComponent(Ranking)
                        .addGap(18, 18, 18)
                        .addComponent(productRank))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(Precio)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(productPrice)))
                .addContainerGap(538, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(titulo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Caratula, javax.swing.GroupLayout.PREFERRED_SIZE, 270, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(actores)
                    .addComponent(actorsLab))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(formatLab)
                    .addComponent(formato))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lenguaje)
                    .addComponent(lanLab))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(subtitulos)
                    .addComponent(subLab))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(region)
                    .addComponent(regLab))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(aspecto)
                    .addComponent(aspLab))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(numeroDeDiscos)
                    .addComponent(discLab))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Ranking)
                    .addComponent(productRank))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Precio)
                    .addComponent(productPrice))
                .addContainerGap(20, Short.MAX_VALUE))
        );
    }// </editor-fold>
    

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        titulo = new javax.swing.JLabel();
        Caratula = new javax.swing.JLabel();
        actores = new javax.swing.JLabel();
        formato = new javax.swing.JLabel();
        lenguaje = new javax.swing.JLabel();
        subtitulos = new javax.swing.JLabel();
        region = new javax.swing.JLabel();
        aspecto = new javax.swing.JLabel();
        numeroDeDiscos = new javax.swing.JLabel();
        actorsLab = new javax.swing.JLabel();
        formatLab = new javax.swing.JLabel();
        lanLab = new javax.swing.JLabel();
        subLab = new javax.swing.JLabel();
        regLab = new javax.swing.JLabel();
        aspLab = new javax.swing.JLabel();
        discLab = new javax.swing.JLabel();
        Ranking = new javax.swing.JLabel();
        Precio = new javax.swing.JLabel();
        productPrice = new javax.swing.JLabel();
        productRank = new javax.swing.JLabel();
        productPrice1 = new javax.swing.JLabel();

        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(desktopapplication3.DesktopApplication3.class).getContext().getResourceMap(DVDPanel.class);
        titulo.setFont(resourceMap.getFont("titulo.font")); // NOI18N
        titulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        titulo.setText(resourceMap.getString("titulo.text")); // NOI18N
        titulo.setName("titulo"); // NOI18N

        Caratula.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Caratula.setText(resourceMap.getString("Caratula.text")); // NOI18N
        Caratula.setName("Caratula"); // NOI18N

        actores.setFont(resourceMap.getFont("actores.font")); // NOI18N
        actores.setText(resourceMap.getString("actores.text")); // NOI18N
        actores.setName("actores"); // NOI18N

        formato.setFont(resourceMap.getFont("actores.font")); // NOI18N
        formato.setText(resourceMap.getString("formato.text")); // NOI18N
        formato.setName("formato"); // NOI18N

        lenguaje.setFont(resourceMap.getFont("actores.font")); // NOI18N
        lenguaje.setText(resourceMap.getString("lenguaje.text")); // NOI18N
        lenguaje.setName("lenguaje"); // NOI18N

        subtitulos.setFont(resourceMap.getFont("actores.font")); // NOI18N
        subtitulos.setText(resourceMap.getString("subtitulos.text")); // NOI18N
        subtitulos.setName("subtitulos"); // NOI18N

        region.setFont(resourceMap.getFont("actores.font")); // NOI18N
        region.setText(resourceMap.getString("region.text")); // NOI18N
        region.setName("region"); // NOI18N

        aspecto.setFont(resourceMap.getFont("actores.font")); // NOI18N
        aspecto.setText(resourceMap.getString("aspecto.text")); // NOI18N
        aspecto.setName("aspecto"); // NOI18N

        numeroDeDiscos.setFont(resourceMap.getFont("actores.font")); // NOI18N
        numeroDeDiscos.setText(resourceMap.getString("numeroDeDiscos.text")); // NOI18N
        numeroDeDiscos.setName("numeroDeDiscos"); // NOI18N

        actorsLab.setText(resourceMap.getString("actorsLab.text")); // NOI18N
        actorsLab.setName("actorsLab"); // NOI18N

        formatLab.setText(resourceMap.getString("formatLab.text")); // NOI18N
        formatLab.setName("formatLab"); // NOI18N

        lanLab.setText(resourceMap.getString("lanLab.text")); // NOI18N
        lanLab.setName("lanLab"); // NOI18N

        subLab.setText(resourceMap.getString("subLab.text")); // NOI18N
        subLab.setName("subLab"); // NOI18N

        regLab.setText(resourceMap.getString("regLab.text")); // NOI18N
        regLab.setName("regLab"); // NOI18N

        aspLab.setText(resourceMap.getString("aspLab.text")); // NOI18N
        aspLab.setName("aspLab"); // NOI18N

        discLab.setText(resourceMap.getString("discLab.text")); // NOI18N
        discLab.setName("discLab"); // NOI18N

        Ranking.setFont(resourceMap.getFont("Ranking.font")); // NOI18N
        Ranking.setText(resourceMap.getString("Ranking.text")); // NOI18N
        Ranking.setName("Ranking"); // NOI18N

        Precio.setFont(resourceMap.getFont("Precio.font")); // NOI18N
        Precio.setText(resourceMap.getString("Precio.text")); // NOI18N
        Precio.setName("Precio"); // NOI18N

        productPrice.setFont(resourceMap.getFont("productPrice.font")); // NOI18N
        productPrice.setForeground(resourceMap.getColor("productPrice.foreground")); // NOI18N
        productPrice.setText(resourceMap.getString("productPrice.text")); // NOI18N
        productPrice.setName("productPrice"); // NOI18N

        productRank.setText(resourceMap.getString("productRank.text")); // NOI18N
        productRank.setName("productRank"); // NOI18N

        productPrice1.setFont(resourceMap.getFont("productPrice1.font")); // NOI18N
        productPrice1.setForeground(resourceMap.getColor("productPrice1.foreground")); // NOI18N
        productPrice1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        productPrice1.setText(resourceMap.getString("productPrice1.text")); // NOI18N
        productPrice1.setName("productPrice1"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(Caratula, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(36, 36, 36)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Ranking)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(aspecto)
                                            .addComponent(region)
                                            .addComponent(lenguaje)
                                            .addComponent(numeroDeDiscos))
                                        .addGap(18, 18, 18))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(Precio)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(productPrice1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lanLab, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(discLab, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(aspLab, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(productRank)
                                    .addComponent(productPrice)
                                    .addComponent(regLab, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(formato)
                            .addComponent(subtitulos)
                            .addComponent(actores))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(actorsLab)
                            .addComponent(formatLab, javax.swing.GroupLayout.PREFERRED_SIZE, 610, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(subLab, javax.swing.GroupLayout.PREFERRED_SIZE, 596, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(272, 272, 272))
                    .addComponent(titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 656, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(titulo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(284, 284, 284)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lenguaje)
                            .addComponent(lanLab))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(region)
                            .addComponent(regLab))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(aspecto)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(numeroDeDiscos)
                                    .addComponent(discLab)))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(aspLab)
                                .addGap(21, 21, 21)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(Ranking)
                            .addComponent(productRank))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(Precio)
                            .addComponent(productPrice)
                            .addComponent(productPrice1))
                        .addGap(22, 22, 22))
                    .addComponent(Caratula, javax.swing.GroupLayout.PREFERRED_SIZE, 419, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(actores)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(subtitulos)
                            .addComponent(subLab))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(formato)
                            .addComponent(formatLab)))
                    .addComponent(actorsLab))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Caratula;
    private javax.swing.JLabel Precio;
    private javax.swing.JLabel Ranking;
    private javax.swing.JLabel actores;
    private javax.swing.JLabel actorsLab;
    private javax.swing.JLabel aspLab;
    private javax.swing.JLabel aspecto;
    private javax.swing.JLabel discLab;
    private javax.swing.JLabel formatLab;
    private javax.swing.JLabel formato;
    private javax.swing.JLabel lanLab;
    private javax.swing.JLabel lenguaje;
    private javax.swing.JLabel numeroDeDiscos;
    private javax.swing.JLabel productPrice;
    private javax.swing.JLabel productPrice1;
    private javax.swing.JLabel productRank;
    private javax.swing.JLabel regLab;
    private javax.swing.JLabel region;
    private javax.swing.JLabel subLab;
    private javax.swing.JLabel subtitulos;
    private javax.swing.JLabel titulo;
    // End of variables declaration//GEN-END:variables

}
